package com.killer.rpc;

import com.killer.rpc.fallback.CodeServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "scn-code-service",path = "code",fallback = CodeServiceFallback.class)
public interface CodeServiceFeign {

    @RequestMapping("/validate/{email}/{code}")
    public Integer validateCode(@PathVariable("email") String email, @PathVariable("code") String code);
}
